package com.lyf.controller;

import com.lyf.util.PicUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;


@RestController
@RequestMapping("/png")
public class PngController {
	
	@RequestMapping("/export")
	public void exportPdf(HttpServletResponse response) throws Exception{
		Map<String,Object> data = new HashMap<>();
		data.put("name", "李逍遥");
		PicUtil.turnImage("png.ftl",data,response);
	}

}
